<%@page import="jwj8508.j2ee.basic.projectv5.dao.MemberDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>회원 가입 처리</title>
</head>
<body>
<h1>회원 가입 처리</h1>
<jsp:useBean id="m" class="jwj8508.j2ee.basic.projectv5.model.MemberVO" scope="page" />
<jsp:setProperty property="*" name="m" />
<% boolean result = new MemberDAO().newMember(m); %>
<% if(result) { %>
<h3>회원 가입 결과 : 성공!!</h3>
<p>아이디 : ${m.uid }</p>
<p>비밀번호 : ${m.pwd }</p>
<p>이름 : ${m.name }</p>
<p><a href="?">메인으로 이동</a></p>
<% } else { %>
<h3 style="color: red;">회원 가입 실패!!</h3>
<p><a href="javascript:history.go(-1);">이전페이지로 이동</a></p>
<% } %>
</body>
</html>